package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.ZjHntMaterialStore;
import com.ruoyi.zhgd.domain.vo.ZjHntMaterialStoreVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.zhgd.dto.ZjHntMaterialStoreDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 料仓  自建-混凝土-料仓Mapper接口
 *
 * @author yhy
 * @date 2023-09-22
 */
public interface ZjHntMaterialStoreMapper extends BaseMapperPlus<ZjHntMaterialStoreMapper, ZjHntMaterialStore, ZjHntMaterialStoreVo> {

    @DataPermission({
        @DataColumn(key = "deptName", value = "sde.dept_id"),
    })
    List<Map> hntMaterialStoreList(Page page,@Param("params") Map<String, Object> params);

    List<ZjHntMaterialStoreDto> selectMaterialStoreType(@Param("params") Map<String, Object> params);

    ZjHntMaterialStoreVo queryById(@Param("id") Long id);
}
